package cmpe226.spring2011.project1.model;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DifferenceDTO {
	private String date;
	private double difference;
	private String symbol;	
	
	public DifferenceDTO(Date date, double difference, String symbol) {
		DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
		this.date = df.format(date);
		this.difference = difference;
		this.symbol = symbol;
	}
	
	public DifferenceDTO() {
		
	}
	
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public double getDifference() {
		return difference;
	}
	public void setDifference(double difference) {
		this.difference = difference;
	}
	public String getSymbol() {
		return symbol;
	}
	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}
}
